package eleven.senven.hpb.config;

/**
 * Created by cnn on 2015/7/13.
 */
public class UrlsHolder {

    private static UrlsHolder urlsHolder;
    public static UrlsHolder getInstance() {
        if (urlsHolder==null){
            urlsHolder = new UrlsHolder();
        }
        return urlsHolder;
    }
    public String getfirstUrl(int page){
        return String.format("http://api.meishixing.com/picture/picturelist/last/city_id=3&session_id=0000136084e4942bf172a857563458eca04753&lat=40.037003&lng=116.36973&page=%d",page);
    }
    //    http://api.meishixing.com/tweet/tweet/detail/session_id=0000136084e4942bf172a857563458eca04753&tweet_id=927989
    public String getfirstDetailUrl(int id){
        return String.format("http://api.meishixing.com/tweet/tweet/detail/session_id=0000136084e4942bf172a857563458eca04753&tweet_id=%d",id);
    }

    public String getMagUrl(int page){
        return String.format("http://api.meishixing.com/foodzine/weekly/list/city_id=3&state=2&page=%d",page);
    }

}
